﻿using System.Collections.Generic;
using System.Linq;

namespace Longbow.Web.Mvc
{
    /// <summary>
    /// QueryData 泛型操作类，配合 bootstrap-table 组件使用
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class QueryData<T> where T : class
    {
        /// <summary>
        /// 获得/设置 数据总数
        /// </summary>
        public long total { get; set; }

        /// <summary>
        /// 获得/设置 当前页记录条数
        /// </summary>
        public IEnumerable<T> rows { get; set; } = Enumerable.Empty<T>();
    }
}
